package com.xunlai.infra.permission.business.converter;

import com.xunlai.infra.permission.business.dao.entity.InvitationCode;
import com.xunlai.infra.permission.business.vo.invitation.InvitationCodeCreateVo;
import com.xunlai.infra.permission.business.vo.invitation.InvitationCodeListVo;
import com.xunlai.infra.permission.business.vo.invitation.InvitationUpdateVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author liang
 * @date 8/21/23 10:06 PM
 */
@Mapper
public interface InvitationCodeConverter {

    InvitationCodeConverter INSTANCE = Mappers.getMapper(InvitationCodeConverter.class);

    InvitationCode convertCreateVo2Entity(InvitationCodeCreateVo invitationCodeCreateVo);

    InvitationCode convertUpdateVo2Entity(InvitationUpdateVo invitationUpdateVo);

    InvitationCodeListVo convertEntity2ListVo(InvitationCode invitationCode);
}
